package com.spring.component.test.xml;

import com.spring.component.xml.annotation.Xml;

import java.util.List;

/**
 * @ClassName: OrderBody
 * @Description:
 * @author: liushihua
 * @date: 2019/1/8
 **/
public class OrderBody extends Body {

  @Xml(xmlName = "Orders", isList = true, clazz = Order.class, isElement = true)
  private List<Order> orders;

  public List<Order> getOrders() {
    return orders;
  }

  public void setOrders(List<Order> orders) {
    this.orders = orders;
  }

  @Override public String toString() {
    String s = super.toString();
    return s.substring(0, s.length() - 1) + ", orders=" + orders + ")";
  }
}
